package com.ruoyi.aitcommon.function;

import java.util.Objects;

/**
 * 仿照 BiConsumer,增加了异常抛出
 * @param <T>
 * @param <U>
 */
@FunctionalInterface
public interface BiConsumerEx<T, U> {
	void accept(T t, U u) throws Exception;
	default BiConsumerEx<T, U> andThen(BiConsumerEx<? super T, ? super U> after) {
        Objects.requireNonNull(after);
        return (l, r) -> {
            accept(l, r);
            after.accept(l, r);
        };
    }
}










